console.log('A')

function foo(){
    console.log('B')
    return new Promise(() => {
        setTimeout(() => {
            console.log('C')
        }, 0);
        console.log('D')
      });
   
}
foo().then(console.log('E'))
new Promise().resolve().then(console.log('F'))